package com.yuda.afterexamscore.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ImportScoreExcelMapper {

    /**
     * 批量插入dp_ques_score_excel_nanhao
     *
     * @param listMap
     * @return
     */
    int insertScoreBatch(List<Map<String, Object>> listMap);

    /**
     * 更新dp_ques_score_excel_nanhao中的字段
     * @param examUUID
     * @param mappingSubjectId
     * @param gaigae
     * @return
     */
    int updateNanHaoInfo(@Param("examUUID") String examUUID, @Param("mappingSubjectId") String mappingSubjectId, @Param("gaigae") Integer gaigae);

    /**
     * insert into 直接查询
     * @param examUUID
     * @param subjectMapObj
     * @param gaige
     * @return
     */

    int batchInsertIntoScore(@Param("examUUID") String examUUID, @Param("subjectMapObj") Map<String,String> subjectMapObj,@Param("gaige") Integer gaige);
}
